package cn.cdiothree.dataobject;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.ibatis.annotations.Options;

import javax.annotation.Generated;

/**
 * 商品类目实体类
 */
@Data
public class ProductCategory  {


    /**
     * 类目Id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer Id;

    /**
     * 父类别id
     */
    private Integer parentId;

    /**
     * 类别名称
     */
    private String categoryName;


    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    public ProductCategory() {
    }


    public ProductCategory(Integer id,Integer parentId, String categoryName) {
        Id = id;
        this.parentId = parentId;
        this.categoryName = categoryName;

    }
}
